PowerTCP Mail for .NET
GetBytes(Char[],Int32,Int32,Byte[],Int32) Method




Characters to be encoded.
Indexer of first character.
Character count.
Byte array destination.
Index for first output byte.
Encodes the provided characters into a byte array.
Syntax
Public Overloads Overrides Function GetBytes( _
   ByVal chars() As Char, _
   ByVal charIndex As Integer, _
   ByVal charCount As Integer, _
   ByVal bytes() As Byte, _
   ByVal byteIndex As Integer _
) As Integer
Dim instance As ImapUTF7
Dim chars() As Char
Dim charIndex As Integer
Dim charCount As Integer
Dim bytes() As Byte
Dim byteIndex As Integer
Dim value As Integer
 
value = instance.GetBytes(chars, charIndex, charCount, bytes, byteIndex)
public override int GetBytes( 
   char[] chars,
   int charIndex,
   int charCount,
   byte[] bytes,
   int byteIndex
)
public: int GetBytes( 
   char[]* chars,
   int charIndex,
   int charCount,
   byte[]* bytes,
   int byteIndex
) override 
public:
int GetBytes( 
   array<char>^ chars,
   int charIndex,
   int charCount,
   array<byte>^ bytes,
   int byteIndex
) override 

Parameters

chars
Characters to be encoded.
charIndex
Indexer of first character.
charCount
Character count.
bytes
Byte array destination.
byteIndex
Index for first output byte.

Return Value

Number of bytes required by the encoding.
Remarks
Use GetByteCount(Char[],Int32,Int32) to calculate exactly, or GetMaxByteCount to calculate at most, the array size required by GetBytes(Char[],Int32,Int32,Byte[],Int32) to store encoded characters.
See Also

Reference

ImapUTF7 Class
ImapUTF7 Members
Overload List


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic